text = "hello world"
new_text = text.replace("hello", "hi").replace("world", "earth")
print(new_text)